#include <limits.h>
#include <math.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>

int minArray(int* numbers, int numbersSize);

int main()
{
	return 0;
}

int minArray(int* numbers, int numbersSize)
{
	int lo = 0, hi = numbersSize - 1;
	while (lo < hi) {
		int pivot = lo + (hi - lo >> 1);
		int sub = numbers[pivot] - numbers[hi];
		if      (sub < 0) hi = pivot;
		else if (sub > 0) lo = pivot + 1;
		else		      hi--;
	}

	return numbers[lo];
}
